{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>角色列表</h1>
        <form action="{:url('admin/con1/savegroup')}" method="post">
            {volist name="list" id="v"}
            <input type="checkbox" name="role[]" value="{$v.id}" {if condition="in_array($v['id'],$roles) eq true"}checked{/if}>{$v.rolename}<br><br><br>
            {/volist}
            <input type="hidden" name="id" value="{$user.id}">
            <button class="btn btn-primary">提交</button>
        </form>
    </div>
</div>

{/block}